package other.xsy.paas;

import com.rkhd.platform.sdk.exception.ApiEntityServiceException;
import other.xsy.paas.utils.HCXObjectService;

public class TestDemo01 {
    private static HCXObjectService hcxObjectService = new HCXObjectService();

    public static void main(String[] args) throws ApiEntityServiceException {
//        Quote quote = new Quote();
//        quote.setId(3216776901348683L);
//        quote.setApprovalStatus(3);
//        hcxObjectService.update(quote);
        String data = "KTSC-2024-00001(10)";
        System.out.println(data.contains("("));
        System.out.println(data.indexOf(".."));
        System.out.println(data.substring(data.indexOf("(") + 1, data.indexOf(")")));


//        String[] split = data.split("-");
//        System.out.println(JSONObject.toJSONString(split));
//        String sql = "select id,accountName as name from account";
//        XObject object = hcxObjectService.queryOne(sql);
//        System.out.println(object);
    }
}
